/*
	This file is part of the JKTest
    Copyright (C) 2008 Royce Y. Feng <ryfeng@gmail.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License version 3
    as published by the Free Software Foundation. You may not use, modify
    or distribute this program under any other version of the
    GNU Affero General Public License.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

package JKPanels;

import javax.swing.JPanel;
import java.awt.GridLayout;

import jktest.JKMainPanel;
import jktest.JKButton;

/**
 * 
 * Panel class used by the test panels for Pass/Fail buttons.
 * 
 * @author Royce Feng
 */
public class PassFailPanel extends JPanel {
    
    private JKButton pass;
    private JKButton fail;
    
    /**
     * 
     * Main Constructor. Sets button clicks to respond to the parent panel
     * 
     * @param _parent
     */
    public PassFailPanel ( JKMainPanel _parent ) {
        super(new GridLayout(1,2));
        pass = new JKButton(_parent,"Pass");
        fail = new JKButton(_parent,"Fail");
        this.add(pass);
        this.add(fail);
    }
    
}
